import {get} from '../utils/request'

// 获取文章列表
export const getArticleList = (pageNo = 1,pageSize = 10) =>{
  return get('/app-api/mp/open/article/list',{
    pageNo,pageSize
  })
}

// 获取文章详情
export const getArticleDetail = (id) => {
  return get('/app-api/mp/open/article/get',{id})
}

// 更多--根据栏目获取文章列表
export const getArticleListByCategory = (category,pageNo = 1,pageSize = 15)=> {
  return get('/app-api/mp/open/article/list-by-category',{
    category,pageNo,pageSize
  })
}

// 名师推荐-获取咨询师信息列表
export const getTeacherList = (pageNo = 1,pageSize = 10) => {
  return get('/app-api/mp/open/consultant/page',{
    pageNo,pageSize
  })
}
// 获取咨询师详情
export const getTeacherDetail = (id) =>{
  return get('/app-api/mp/open/consultant/get',{id})
}

// 获取轮播图列表
export const getBannerList = (pageNo = 1,pageSize = 10) => {
  return get('/app-api/mp/open/banner/list',{
    pageNo,pageSize
  })
}